package com.jichangxiu.framework.action;

import com.jichangxiu.common.annotation.Rest;
import com.jichangxiu.common.entity.bo.Result;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * IndexAction:
 *
 * @author Jcx
 * @create 2023-04-04 10:04
 */
@Rest
@Tag(name = "平台-首页控制器")
public class IndexAction {

    @Operation(summary = "平台-网站首页")
    @RequestMapping(value = {"/", "/index"}, method = {RequestMethod.POST, RequestMethod.GET})
    public Result<String> index() {
        return Result.ok("欢迎使用 Jcx-Boot");
    }

}
